/* See the files LICENSE and COPYRIGHT for license and copyright information */
package org.rubiq;

/**
 * @author <a href="mailto:ola.bini@gmail.com">Ola Bini</a>
 */
public abstract class LispExpression {
    protected void toString(StringBuffer sb) {
        sb.append(toString());
    }

    public LispExpression car() {
        throw new RuntimeException("Can't call car on non-list");
    }

    public LispExpression cdr() {
        throw new RuntimeException("Can't call cdr on non-list");
    }
}// LispExpression
